package com.swift.violent.mainstay.core.api.core.service;

import com.alibaba.fastjson.JSONObject;
import com.dtflys.forest.annotation.Body;
import com.dtflys.forest.annotation.PostRequest;
import com.swift.violent.mainstay.core.api.core.modal.dto.ShowDocUpdateApi;
import org.springframework.stereotype.Component;

/**
 * The interface Api doc sync.
 *
 * @author xuhaifeng
 * @date 2021.1.20 10:41
 */
@Component
public interface ApiDocSync {
    /**
     * show doc 同步接口
     *
     * @param param the param
     *
     * @see ShowDocUpdateApi
     */
    @PostRequest(
            url = "https://www.showdoc.com.cn/server/api/item/updateByApi",
            headers = {
                    "Accept-Charset: utf-8",
                    "Content-Type: application/json"
            }
    )
    void showDocSync(@Body JSONObject param);
}
